package com.zlb.leyaoxiu2.sqlite.entity;

import io.realm.RealmObject;
import io.realm.annotations.PrimaryKey;

/**
 * Created by Administrator on 2016/8/23.
 */
public class SystemMessage extends RealmObject {

    @PrimaryKey
    private String msgUnique;      //userId+peerId作为唯一标识()
    private String userId;            //自己的ID
    private String peerId;            //peerId
    private String nickName;        //对方昵称
    private String iconUrl;         //对方头像
    private String systemMsgType;     //(系统消息，私聊消息等)
    private String lastMsgType;        //图片，文字，语音
    private String lastMsg;          //最后一条消息
    private String userLevel;       //用户等级
    private int unReadCount;        //未读消息数
    private long msgTime;           //消息发送时间
    @Override
    public String toString() {
        return "SystemMessage{" +
                "msgUnique='" + msgUnique + '\'' +
                ", userId='" + userId + '\'' +
                ", peerId='" + peerId + '\'' +
                ", nickName='" + nickName + '\'' +
                ", iconUrl='" + iconUrl + '\'' +
                ", systemMsgType='" + systemMsgType + '\'' +
                ", lastMsgType='" + lastMsgType + '\'' +
                ", lastMsg='" + lastMsg + '\'' +
                ", userLevel='" + userLevel + '\'' +
                ", unReadCount=" + unReadCount +
                ", msgTime=" + msgTime +
                '}';
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    public long getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(long msgTime) {
        this.msgTime = msgTime;
    }

    public String getMsgUnique() {
        return msgUnique;
    }

    public void setMsgUnique(String msgUnique) {
        this.msgUnique = msgUnique;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPeerId() {
        return peerId;
    }

    public void setPeerId(String peerId) {
        this.peerId = peerId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getSystemMsgType() {
        return systemMsgType;
    }

    public void setSystemMsgType(String systemMsgType) {
        this.systemMsgType = systemMsgType;
    }

    public String getLastMsgType() {
        return lastMsgType;
    }

    public void setLastMsgType(String lastMsgType) {
        this.lastMsgType = lastMsgType;
    }

    public String getLastMsg() {
        return lastMsg;
    }

    public void setLastMsg(String lastMsg) {
        this.lastMsg = lastMsg;
    }

    public int getUnReadCount() {
        return unReadCount;
    }

    public void setUnReadCount(int unReadCount) {
        this.unReadCount = unReadCount;
    }
}
